﻿<%@ Page Title="" Language="C#" MasterPageFile="~/mpPagina.master" AutoEventWireup="true" CodeFile="ConsultaMedica.aspx.cs" Inherits="ConsultaMedica" %>

<asp:Content ID="Content1" ContentPlaceHolderID="cphHead" runat="Server">
    <link rel="stylesheet" href="/css/botonPAW.css" />
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="cphAcciones" runat="Server">
</asp:Content>

<asp:Content ID="Content3" ContentPlaceHolderID="cphTitulo" runat="Server">
    <h3>Consulta M&eacute;dica</h3>
</asp:Content>

<asp:Content ID="Content4" ContentPlaceHolderID="cphPrincipal" runat="Server">
    <link rel="stylesheet" href="//code.jquery.com/ui/1.11.2/themes/smoothness/jquery-ui.css">
    <script src="/js/jquery-1.10.2.js"></script>
    <script src="/js/jquery-ui.js"></script>
    <script src="/js/ConsultaMedica.js"></script>
    <script src="/js/jquery.ui.datepicker-es.js"></script>
    <script src="/js/jquery.timepicker.min.js"></script>
    <link rel="stylesheet" href="css/jquery.timepicker.css" />
    <style>
        .ValidatorAndRequiredField {
            font-size: 12px !important;
            font-family: Arial, Verdana, Helvetica, sans-serif !important;
            color: Red !important;
            padding: 2px 3px !important;
        }
    </style>
    <div id="AgregaConsulta" runat="server">
        <br />
        <asp:HiddenField ID="IdConsultaHiddenField" runat="server" />
        <table>
            <tr>
                <td>
                    <asp:Label runat="server" ID="AnimalLabel" Text="Tipo de Animal: "></asp:Label>
                    <asp:DropDownList runat="server" ID="AnimalDropDownList"></asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label runat="server" ID="NombreMedicoLabel" Text="Medico: "></asp:Label>
                    <asp:DropDownList runat="server" ID="NombreMedicoDropDownList"></asp:DropDownList>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label runat="server" ID="FechaLabel" Text="Fecha: "></asp:Label>
                    <asp:TextBox runat="server" ID="FechaTextBox" CssClass="FechaJQuery"></asp:TextBox>
                </td>
                <td>
                    <asp:RequiredFieldValidator ID="FechaValidator" runat="server" ValidateEmptyText="true"
                        ControlToValidate="FechaTextBox" CssClass="ValidatorAndRequiredField" Display="Dynamic"
                        ValidationGroup="AgregarCita" Text="Debe indicar la fecha"
                        ClientValidationFunction="CheckForEmpty" SetFocusOnError="true"></asp:RequiredFieldValidator>
                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label runat="server" ID="HoraLabel" Text="Hora: "></asp:Label>
                    <asp:TextBox runat="server" ID="HoraTextBox" CssClass="HoraJQuery"></asp:TextBox></td>
                <td>

                    <asp:RequiredFieldValidator ID="HoraRequiredFieldValidator" runat="server" ValidateEmptyText="true"
                        ControlToValidate="HoraTextBox" CssClass="ValidatorAndRequiredField" Display="Dynamic"
                        ValidationGroup="AgregarCita" Text="Debe indicar la hora"
                        ClientValidationFunction="CheckForEmpty" SetFocusOnError="true"></asp:RequiredFieldValidator>

                </td>
            </tr>
            <tr>
                <td>
                    <asp:Label runat="server" ID="DetalleLabel" Text="Detalle: "></asp:Label>
                    <asp:TextBox runat="server" ID="DetalleTextBox" TextMode="MultiLine"></asp:TextBox></td>
                <td>
                    <asp:RequiredFieldValidator ID="DetalleRequiredFieldValidator" runat="server" ValidateEmptyText="true"
                        ControlToValidate="DetalleTextBox" CssClass="ValidatorAndRequiredField" Display="Dynamic"
                        ValidationGroup="AgregarCita" Text="Debe indicar el detalle"
                        ClientValidationFunction="CheckForEmpty" SetFocusOnError="true"></asp:RequiredFieldValidator>
                </td>
            </tr>

        </table>
        <asp:Button ID="AgregarButton" runat="server" Text="Agregar Consulta" OnClick="AgregarButton_Click" ValidationGroup="AgregarCita" />
        <asp:Button ID="ActualizarButton" runat="server" Text="Actualizar Consulta" OnClick="ActualizarButton_Click" Visible="false" ValidationGroup="AgregarCita"/>
        <asp:Button ID="ImprimirButton" runat="server" OnClick="ImprimirButton_Click" Text="Generar reporte" Visible="false" />
    </div>
</asp:Content>
